﻿@{
    Layout = "~/themes/bootstrap/Shared/_Layout.cshtml";
}
@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@{
    UcAsp.Net.Model.Categories cate = ViewData["Categories"] as UcAsp.Net.Model.Categories;
    ViewBag.Title = cate.CategorieName + cate.KeyWords;
    List<UcAsp.Net.Model.CategoriesTree> menulist = ViewData["ChildMenu"] as List<UcAsp.Net.Model.CategoriesTree>; 
 }
 <div>
 @foreach (UcAsp.Net.Model.CategoriesTree t in menulist)
 {
 <a href="/Categories/@t.ShowPath@{<text>.shtml</text>}">@t.CategorieName</a>
}
 </div>
 <div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 adv2">
            <div id="fcbx">
                @(new HtmlString(AdvConfig.GetAdvPositions("AD2",cate.ID.ToString()).AdvHtml))
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span8">
            @{
                foreach(UcAsp.Net.Model.Subjects model in UcAsp.Net.BLL.SubjectsConfig.GetCategoriesSubjects(cate.ID))
                {
                    
                <div class="span6" style="float: left; margin: 0px; padding: 0px;">
                <div> @SubjectsConfig.GetSubjects(model.SubjectId,cate.ID).SubjectName</div>
                    @foreach (ArticelsViews art in ArticlesBLL.GetSubject(model.SubjectId,cate.ID))
                    {
                        <a href="/ShowMessage/@if (string.IsNullOrEmpty(art.ShowPath))
                                              {@art.ID<text>.shtml</text>}
                                              else
                                              {@art.ShowPath<text>.shtml</text>}">
                            @(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 20))
                        </a>
                    }
                </div>
                }
            }
        </div>
        <div class="span4">
            @(new HtmlString(AdvConfig.GetAdvPositions("AD4").AdvHtml))
        </div>
    </div>
</div>
